<!DOCTYPE html>
<html>
<head>
	{include file="common_header" /}
	{include file="common_top" /}
</head>
<body>

  <div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-header">审核提现</div>
      <div class="layui-card-body" style="padding: 15px;">
        <form class="layui-form" action="" lay-filter="component-form-group">




          <div class="layui-form-item">
            <label class="layui-form-label">提现者</label>
            <div class="layui-input-block">
              <input name="title" type="text" disabled class="layui-input" id="title" readonly="readonly"   placeholder="{$info['u_phone']}" >
            </div>
          </div>
		  
		  
		  <div class="layui-form-item">
            <label class="layui-form-label">提现金额</label>
            <div class="layui-input-block">
              <input name="money" type="text" disabled class="layui-input" id="money" readonly="readonly"   placeholder="{$info['tx_money']}">
            </div>
          </div>
		  
		  <div class="layui-form-item">
            <label class="layui-form-label">提现备注</label>
            <div class="layui-input-block">
              <input name="content" type="text" disabled class="layui-input" id="content"  readonly="readonly"   placeholder="{$info['tx_content']}">
            </div>
          </div>
          
		  
		  <div class="layui-form-item">
            <label class="layui-form-label">支付宝帐号</label>
            <div class="layui-input-block">
              <input type="text"  class="layui-input"   placeholder="{$info['u_zfb_title']}" value="{$info['u_zfb_title']}">
            </div>
          </div>
		  
		  <div class="layui-form-item">
            <label class="layui-form-label">支付宝姓名</label>
            <div class="layui-input-block">
              <input type="text"  class="layui-input"  placeholder="{$info['u_zfb_name']}" value="{$info['u_zfb_name']}">
            </div>
          </div>
          
		  
		  


          <div class="layui-form-item">
            <label class="layui-form-label">提现审核</label>
            <div class="layui-input-block">
              <input type="radio" name="status" value="3" title="通过" checked>
              <input type="radio" name="status" value="2" title="拒绝">
            </div>
          </div> 


		<div class="layui-form-item">
            <label class="layui-form-label">审核备注</label>
            <div class="layui-input-block">
              <input name="shcontent" type="text" class="layui-input" id="shcontent" placeholder="审核备注">
            </div>
          </div>



          <div class="layui-form-item layui-layout-admin">
            <div class="layui-input-block">
              <div class="layui-footer" style="left: 0;">
                <div class="layui-btn sub">立即提交</div>
                <button type="reset" class="layui-btn layui-btn-primary ">重置</button>
              </div>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
{include file="common_footer" /} 
<script>
$(".sub").click(function(){
	//if(!$(".btn").hasClass("sub")){return false;}
	var shcontent        = $("#shcontent").val();
	var status       = $("input[name='status']:checked").val();

	if(shcontent == ""){
		show_error("审核备注不能为空");
		return false
	}
	
	
	$.ajax({
		type:"POST",
		url:"{:url('tixian/edit')}",
		dataType:"json",
		data:{
			id:{$info['tx_id']},
			shcontent:shcontent,
			status:status,
		},
		success:function(res){
			if(res.status == "success"){
				show_toast_callurl(res.data,"{:url('tixian/index')}","success");
			}else{
				show_error(res.data);
			}
		},
		error:function(jqXHR){
			console.log("Error: "+jqXHR.status);
		},
	});
	
});
</script>
</body>
</html>
